package designpattern.singleton.type1;

/*
    饿汉式(静态常量)
 */
public class Singleton {
    private static final Singleton singleTon = new Singleton();

    private Singleton(){
    }

    public static Singleton getInstance(){
        return singleTon;
    }
}
